package com.ruoyi.teacher.mapper;

import java.util.List;
import java.util.Map;

import com.ruoyi.teacher.domain.StuZxjInfo;
import org.apache.ibatis.annotations.Param;

public interface StuZxjInfoMapper {

    //修改审批表
    int updateStuZxjInfo(StuZxjInfo stuZxjInfo);

    //获取一条审批记录
    StuZxjInfo getByZxjId(@Param("zxjId") Long zxjId);

    //增加一条审批记录
    int saveStuZxjInfo(StuZxjInfo stuZxjInfo);

    //根据审批教师ID查审批记录
    List<StuZxjInfo> getByUserID(@Param("userId") Long userId);

    //批量删除审批记录
    int deleteByZxjIds(@Param("zxjIds") Long[] zxjIds);

    List<StuZxjInfo> getStuZxjInfoList(StuZxjInfo stuZxjInfo);

    /**
     *
     * @param zxjId
     * @param userId
     * @return 返回 是、否 能审批
     */
    boolean isNengshengpi(@Param("zxjId") Long zxjId,@Param("userId") Long userId);

    /**
     * 查询当前为新增还是更新
     * @param zxjId
     * @return
     */
    boolean isNewShengpi(Long zxjId);

    int updateStatus(StuZxjInfo stuZxjInfo);
}
